﻿using System.ComponentModel.DataAnnotations;
using WebAPI.Util;

namespace WebAPI.Models;

public class GetDataDictionaryListRequest : BasePageInput
{
    public string? CodeItemId { get; set; }
    public string? CodeItemName { get; set; }
    public string? ItemTypeId { get; set; }
    public string? ItemTypeName { get; set; }
    public string? Description { get; set; }
    public string? DefaultSetValue { get; set; }
    public string? Enable { get; set; } = null;
}

public class GetDataDictionaryListResponse
{
    public Guid Id { get; set; }
    public string? CodeItemId { get; set; }
    public string? CodeItemName { get; set; }
    public string? ItemTypeId { get; set; }
    public string? ItemTypeName { get; set; }
    public string? DefaultSetValue { get; set; }
    public string? Description { get; set; }
    public bool Enable { get; set; }
    public string CreateUser { get; set; }
    public string CreateDate { get; set; }
    public string UpdateUser { get; set; }
    public string UpdateDate { get; set; }
}

public class DataDictionaryListRequest 
{
    public string? CodeItemName { get; set; }
    public string? ItemTypeName { get; set; }
}

public class DataDictionaryListResponse
{ 
    public Guid Id { get; set; }
    public string DefaultSetValue { get; set;}
}



public class InsertFrIpDataDictionaryRequest
{
    public string? CodeItemId { get; set; }
    public string? CodeItemName { get; set; }
    public string? ItemTypeId { get; set; }
    public string? ItemTypeName { get; set; }
    public string? DefaultSetValue { get; set; }
    public string? Description { get; set; }
    public bool Enable { get; set; }
}

public class UpdateFrIpDataDictionaryRequest
{
    public Guid Id { get; set; }
    public string? CodeItemId { get; set; }
    public string? CodeItemName { get; set; }
    public string? ItemTypeId { get; set; }
    public string? ItemTypeName { get; set; }
    public string? DefaultSetValue { get; set; }
    public string? Description { get; set; }
    public bool Enable { get; set; }
}

public class EnableFrIpDataDictionaryRequest
{
    [Required(ErrorMessage = "ids is required")]
    public string ids { get; set; }

    public bool enable { get; set; }

}
